// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc             v4.25.3
// source: chromadb/proto/chroma.proto

package coordinatorpb

import (
	context "context"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
)

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7

// VectorReaderClient is the client API for VectorReader service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type VectorReaderClient interface {
	GetVectors(ctx context.Context, in *GetVectorsRequest, opts ...grpc.CallOption) (*GetVectorsResponse, error)
	QueryVectors(ctx context.Context, in *QueryVectorsRequest, opts ...grpc.CallOption) (*QueryVectorsResponse, error)
}

type vectorReaderClient struct {
	cc grpc.ClientConnInterface
}

func NewVectorReaderClient(cc grpc.ClientConnInterface) VectorReaderClient {
	return &vectorReaderClient{cc}
}

func (c *vectorReaderClient) GetVectors(ctx context.Context, in *GetVectorsRequest, opts ...grpc.CallOption) (*GetVectorsResponse, error) {
	out := new(GetVectorsResponse)
	err := c.cc.Invoke(ctx, "/chroma.VectorReader/GetVectors", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *vectorReaderClient) QueryVectors(ctx context.Context, in *QueryVectorsRequest, opts ...grpc.CallOption) (*QueryVectorsResponse, error) {
	out := new(QueryVectorsResponse)
	err := c.cc.Invoke(ctx, "/chroma.VectorReader/QueryVectors", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// VectorReaderServer is the server API for VectorReader service.
// All implementations must embed UnimplementedVectorReaderServer
// for forward compatibility
type VectorReaderServer interface {
	GetVectors(context.Context, *GetVectorsRequest) (*GetVectorsResponse, error)
	QueryVectors(context.Context, *QueryVectorsRequest) (*QueryVectorsResponse, error)
	mustEmbedUnimplementedVectorReaderServer()
}

// UnimplementedVectorReaderServer must be embedded to have forward compatible implementations.
type UnimplementedVectorReaderServer struct {
}

func (UnimplementedVectorReaderServer) GetVectors(context.Context, *GetVectorsRequest) (*GetVectorsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetVectors not implemented")
}
func (UnimplementedVectorReaderServer) QueryVectors(context.Context, *QueryVectorsRequest) (*QueryVectorsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method QueryVectors not implemented")
}
func (UnimplementedVectorReaderServer) mustEmbedUnimplementedVectorReaderServer() {}

// UnsafeVectorReaderServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to VectorReaderServer will
// result in compilation errors.
type UnsafeVectorReaderServer interface {
	mustEmbedUnimplementedVectorReaderServer()
}

func RegisterVectorReaderServer(s grpc.ServiceRegistrar, srv VectorReaderServer) {
	s.RegisterService(&VectorReader_ServiceDesc, srv)
}

func _VectorReader_GetVectors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetVectorsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(VectorReaderServer).GetVectors(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/chroma.VectorReader/GetVectors",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(VectorReaderServer).GetVectors(ctx, req.(*GetVectorsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _VectorReader_QueryVectors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(QueryVectorsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(VectorReaderServer).QueryVectors(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/chroma.VectorReader/QueryVectors",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(VectorReaderServer).QueryVectors(ctx, req.(*QueryVectorsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// VectorReader_ServiceDesc is the grpc.ServiceDesc for VectorReader service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var VectorReader_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chroma.VectorReader",
	HandlerType: (*VectorReaderServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetVectors",
			Handler:    _VectorReader_GetVectors_Handler,
		},
		{
			MethodName: "QueryVectors",
			Handler:    _VectorReader_QueryVectors_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "chromadb/proto/chroma.proto",
}
